package com.bdqn.text;

public abstract class MotoVehicle {
    private String No;//车牌号
    private String Brand;//品牌

    public String getNo() {
        return No;
    }

    public void setNo(String no) {
        No = no;
    }

    public String getBrand() {
        return Brand;
    }

    public void setBrand(String brand) {
        Brand = brand;
    }
    public MotoVehicle() {
    }
    public MotoVehicle(String no, String brand) {
        No = no;
        Brand = brand;
        System.out.println("调用两个参数构造方法");
    }
    /*抽象方法,计算租金
    * */
    public abstract  int calRent(int days);
}
